package com.bjpowernode.web.controller;

import com.bjpowernode.api.serivce.*;
import com.bjpowernode.web.service.RealNameService;
import com.bjpowernode.web.service.SmsService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 麦翔盛
 * @ClassName: BaseController
 * @Package: com.bjpowernode.web.controller
 * @description: 公共controller
 * @date 2022/5/14 22:04
 */
public class BaseController {

    @DubboReference(interfaceClass = PlatformService.class,version = "1.0")
    protected PlatformService platformService;

    @DubboReference(interfaceClass = ProductService.class,version = "1.0")
    protected ProductService productService;


    @DubboReference(interfaceClass = BidInfoService.class,version = "1.0")
    protected BidInfoService bidInfoService;

    @DubboReference(interfaceClass = FinanceAccountService.class,version = "1.0")
    protected FinanceAccountService financeAccountService;

    @DubboReference(interfaceClass = UserService.class,version = "1.0")
    protected UserService userService;

    @DubboReference(interfaceClass = InvestService.class,version = "1.0")
    protected InvestService investService;

    @Resource
    protected StringRedisTemplate stringRedisTemplate;

    @Resource
    protected SmsService smsService;

    @Resource
    protected RealNameService realNameService;

}
